package com.kongfuzi.student.ui.global;

import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;

import com.kongfuzi.student.R;
import com.kongfuzi.student.app.GasApplication;
import com.kongfuzi.student.support.utils.ArgsConstants;
import com.kongfuzi.student.ui.base.CustomerActionBarActivity;

public class NothingActivity extends CustomerActionBarActivity {

    public static Intent newIntent(String title) {
        Intent intent = new Intent(GasApplication.getInstance(),NothingActivity.class);
        intent.putExtra(ArgsConstants.TITLE,title);
        return intent;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        String title = getIntent().getStringExtra(ArgsConstants.TITLE);
        switch (title) {
            case "智行宝":
                setContentView(R.layout.activity_zhixingbao);
                break;
            case "客服中心":
                setContentView(R.layout.activity_kefuzhongxin);
                break;
            case "智服宝":
                setContentView(R.layout.activity_zhifubao);
                break;
            case "智盈宝":
                setContentView(R.layout.activity_zhiyingbao);
                break;
            default:
                setContentView(R.layout.activity_nothing);
        }
        if(!TextUtils.isEmpty(title)) {
            setCustomerTitle(title);
        }
    }

}
